```html
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在IDEA中使用Continue插件接入DeepSeek | 技术小馆</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            color: #333;
            line-height: 1.6;
        }
        .hero {
            background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
        }
        .card {
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }
        .step-number {
            width: 36px;
            height: 36px;
            background: linear-gradient(135deg, #6e8efb 0%, #a777e3 100%);
        }
        code {
            background: #f5f7fa;
            border-radius: 4px;
            padding: 2px 6px;
            font-family: 'Courier New', Courier, monospace;
        }
        pre {
            background: #2d3748;
            color: #f8f8f2;
            border-radius: 8px;
            overflow-x: auto;
        }
        .mermaid {
            background: white;
            border-radius: 12px;
            padding: 20px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        }
        .hover-underline:hover {
            text-decoration: underline;
        }
    </style>
</head>
<body class="bg-gray-50">
    <!-- Hero Section -->
    <section class="hero text-white py-20 px-4 md:px-0">
        <div class="container mx-auto max-w-5xl text-center">
            <h1 class="text-4xl md:text-5xl font-bold mb-6 font-serif">在IDEA中使用Continue插件接入DeepSeek</h1>
            <p class="text-xl md:text-2xl opacity-90 mb-8 max-w-3xl mx-auto">让你的AI编程助手更智能，开发效率提升200%</p>
            <div class="flex justify-center space-x-4">
                <a href="#start" class="bg-white text-indigo-600 px-6 py-3 rounded-full font-medium hover:bg-opacity-90 transition">立即开始</a>
                <a href="#video" class="border border-white px-6 py-3 rounded-full font-medium hover:bg-white hover:bg-opacity-10 transition">观看演示</a>
            </div>
        </div>
    </section>

    <!-- Main Content -->
    <main class="container mx-auto max-w-5xl px-4 md:px-0 py-12">
        <!-- Intro -->
        <section class="mb-16">
            <p class="text-lg text-gray-700 leading-relaxed mb-8">在本篇文章中，我们将详细介绍如何在 JetBrains IDEA 中使用 Continue 插件接入 <span class="font-bold text-indigo-600">DeepSeek</span>，让你的 AI 编程助手更智能，提高开发效率。</p>
            
            <!-- Requirements -->
            <div class="bg-blue-50 border-l-4 border-blue-500 p-6 rounded-r-lg mb-12">
                <h3 class="font-bold text-lg text-blue-800 mb-3 flex items-center">
                    <i class="fas fa-check-circle mr-2 text-blue-600"></i> 前置准备
                </h3>
                <p class="text-gray-700 mb-4">在开始之前，请确保你已经具备以下条件：</p>
                <ul class="space-y-2">
                    <li class="flex items-start">
                        <i class="fas fa-check text-blue-500 mt-1 mr-2 text-sm"></i>
                        <span>已安装 <span class="font-semibold">JetBrains IDEA</span>（IntelliJ IDEA、PyCharm 等均可）</span>
                    </li>
                    <li class="flex items-start">
                        <i class="fas fa-check text-blue-500 mt-1 mr-2 text-sm"></i>
                        <span>网络环境可访问 <span class="font-semibold">DeepSeek</span>（如需代理，请提前配置）</span>
                    </li>
                    <li class="flex items-start">
                        <i class="fas fa-check text-blue-500 mt-1 mr-2 text-sm"></i>
                        <span>已安装 <span class="font-semibold">Continue 插件</span>（Continue 是一个 AI 辅助编码插件，支持 DeepSeek）</span>
                    </li>
                </ul>
            </div>

            <!-- Mermaid Diagram -->
            <div class="mermaid mb-12">
                graph TD
                    A[准备工作] --> B[安装Continue插件]
                    B --> C[配置DeepSeek API]
                    C --> D[测试代码补全]
                    D --> E[使用Chat功能]
                    E --> F[解决常见问题]
            </div>
        </section>

        <!-- Installation Steps -->
        <section id="start" class="mb-16">
            <h2 class="text-3xl font-bold mb-8 pb-2 border-b border-gray-200 flex items-center">
                <span class="text-indigo-600 mr-2">一、</span>安装 Continue 插件
            </h2>
            
            <div class="space-y-8">
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">1</div>
                    <div>
                        <p class="font-medium text-gray-800">打开 IDEA，点击顶部菜单栏的 <span class="bg-gray-100 px-2 py-1 rounded">File</span> → <span class="bg-gray-100 px-2 py-1 rounded">Settings</span>（Windows/Linux）或 <span class="bg-gray-100 px-2 py-1 rounded">Preferences</span>（Mac）。</p>
                    </div>
                </div>
                
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">2</div>
                    <div>
                        <p class="font-medium text-gray-800">在左侧导航栏中选择 <span class="bg-gray-100 px-2 py-1 rounded">Plugins</span>，然后搜索 <code>Continue</code>。</p>
                    </div>
                </div>
                
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">3</div>
                    <div>
                        <p class="font-medium text-gray-800">找到 <span class="font-semibold">Continue - AI code completion and chat</span> 插件，点击 <span class="bg-blue-100 text-blue-800 px-2 py-1 rounded">Install</span> 进行安装。</p>
                    </div>
                </div>
                
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">4</div>
                    <div>
                        <p class="font-medium text-gray-800">安装完成后，点击 <span class="bg-blue-100 text-blue-800 px-2 py-1 rounded">Restart IDE</span> 重新启动 IDEA。</p>
                    </div>
                </div>
            </div>

            <div class="mt-10 rounded-xl overflow-hidden shadow-lg">
                <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1738993022010-bf9cfb22-f60a-4a05-b70a-96a9050b7bd5.png" alt="Continue插件安装界面" class="w-full h-auto">
            </div>
        </section>

        <!-- Configuration -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 pb-2 border-b border-gray-200 flex items-center">
                <span class="text-indigo-600 mr-2">二、</span>配置 Continue 连接 DeepSeek
            </h2>
            
            <div class="space-y-8">
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">1</div>
                    <div>
                        <p class="font-medium text-gray-800">在 IDEA 启动后，打开 <span class="font-semibold">Continue 界面</span>：</p>
                        <ul class="mt-2 space-y-1 text-gray-700">
                            <li class="flex items-start">
                                <i class="fas fa-chevron-right text-indigo-500 text-xs mt-2 mr-2"></i>
                                <span>方式 1：点击 <span class="bg-gray-100 px-2 py-1 rounded">右侧工具栏</span> 中的 Continue 按钮</span>
                            </li>
                            <li class="flex items-start">
                                <i class="fas fa-chevron-right text-indigo-500 text-xs mt-2 mr-2"></i>
                                <span>方式 2：使用快捷键 <span class="bg-gray-100 px-2 py-1 rounded">Shift + Shift</span>，然后搜索 "Continue"</span>
                            </li>
                        </ul>
                    </div>
                </div>
                
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">2</div>
                    <div>
                        <p class="font-medium text-gray-800">在 Continue 界面中，点击 <span class="bg-gray-100 px-2 py-1 rounded">Settings</span>（设置）。</p>
                    </div>
                </div>
                
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">3</div>
                    <div>
                        <p class="font-medium text-gray-800">在 "Model Provider" 选项中，选择 <span class="bg-gray-100 px-2 py-1 rounded">Custom API</span>。</p>
                    </div>
                </div>
                
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">4</div>
                    <div>
                        <p class="font-medium text-gray-800">输入 DeepSeek 的 API 地址：</p>
                        <pre class="mt-2"><code>https://api.deepseek.com/v1</code></pre>
                    </div>
                </div>
                
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">5</div>
                    <div>
                        <p class="font-medium text-gray-800">在 "API Key" 处粘贴你的 <span class="font-semibold">DeepSeek API Key</span>（需要在 DeepSeek 官网申请）。</p>
                    </div>
                </div>
                
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">6</div>
                    <div>
                        <p class="font-medium text-gray-800">点击 <span class="bg-blue-100 text-blue-800 px-2 py-1 rounded">Save</span> 进行保存。</p>
                    </div>
                </div>
            </div>

            <div class="mt-10 grid grid-cols-1 md:grid-cols-2 gap-6">
                <div class="rounded-xl overflow-hidden shadow-lg">
                    <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1738994744171-98d7d1f8-7989-4f43-9506-00427b81c5a8.png" alt="Continue插件配置界面" class="w-full h-auto">
                </div>
                <div class="bg-white p-6 rounded-xl shadow-lg">
                    <h3 class="font-bold text-lg text-indigo-600 mb-4 flex items-center">
                        <i class="fas fa-key mr-2"></i> 获取DeepSeek API Key
                    </h3>
                    <p class="text-gray-700 mb-4">访问以下链接申请API Key：</p>
                    <a href="https://platform.deepseek.com/api_keys" target="_blank" class="text-blue-600 hover-underline flex items-center">
                        https://platform.deepseek.com/api_keys
                        <i class="fas fa-external-link-alt ml-2 text-sm"></i>
                    </a>
                    <div class="mt-4 rounded overflow-hidden">
                        <img src="https://cdn.nlark.com/yuque/0/2025/png/21449790/1738994836867-ccd61641-2ee6-4d0f-8644-e24ff97b352c.png" alt="DeepSeek API Key获取界面" class="w-full h-auto">
                    </div>
                </div>
            </div>
        </section>

        <!-- Testing -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 pb-2 border-b border-gray-200 flex items-center">
                <span class="text-indigo-600 mr-2">三、</span>测试 DeepSeek AI 代码补全
            </h2>
            
            <div class="space-y-8">
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">1</div>
                    <div>
                        <p class="font-medium text-gray-800">新建或打开一个 Java 项目。</p>
                    </div>
                </div>
                
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">2</div>
                    <div>
                        <p class="font-medium text-gray-800">在一个类文件中输入部分代码，例如：</p>
                        <pre class="mt-2"><code>public class Test {
    public static void main(String[] args) {
        // 这里可以尝试让 AI 补全代码
    }
}</code></pre>
                    </div>
                </div>
                
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">3</div>
                    <div>
                        <p class="font-medium text-gray-800">按 <span class="bg-gray-100 px-2 py-1 rounded">Tab</span> 试试看 DeepSeek 提供的代码补全建议。</p>
                    </div>
                </div>
                
                <div class="flex gap-6">
                    <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">4</div>
                    <div>
                        <p class="font-medium text-gray-800">你还可以在 Continue 面板中输入问题，让 AI 直接回答。</p>
                    </div>
                </div>
            </div>
        </section>

        <!-- Chat Feature -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 pb-2 border-b border-gray-200 flex items-center">
                <span class="text-indigo-600 mr-2">四、</span>DeepSeek 的 Chat 交互功能
            </h2>
            
            <div class="bg-indigo-50 p-6 rounded-xl">
                <p class="text-gray-800 mb-4">除了代码补全，你还可以使用 <span class="font-semibold text-indigo-700">DeepSeek Chat</span> 进行代码解释、优化建议等。</p>
                
                <div class="space-y-6">
                    <div class="flex gap-6">
                        <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">1</div>
                        <div>
                            <p class="font-medium text-gray-800">打开 Continue 界面（点击右侧工具栏）。</p>
                        </div>
                    </div>
                    
                    <div class="flex gap-6">
                        <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">2</div>
                        <div>
                            <p class="font-medium text-gray-800">在输入框中输入你的问题，比如：</p>
                            <pre class="mt-2"><code>如何优化这段 Java 代码？</code></pre>
                        </div>
                    </div>
                    
                    <div class="flex gap-6">
                        <div class="step-number rounded-full flex-shrink-0 flex items-center justify-center text-white font-bold mt-1">3</div>
                        <div>
                            <p class="font-medium text-gray-800">DeepSeek 会自动解析你的代码，并提供优化建议。</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <!-- FAQ -->
        <section class="mb-16">
            <h2 class="text-3xl font-bold mb-8 pb-2 border-b border-gray-200 flex items-center">
                <span class="text-indigo-600 mr-2">五、</span>常见问题及解决方案
            </h2>
            
            <div class="space-y-8">
                <!-- FAQ Item 1 -->
                <div class="card bg-white p-6 rounded-xl shadow-sm">
                    <h3 class="font-bold text-xl text-gray-800 mb-3 flex items-center">
                        <i class="fas fa-question-circle text-red-500 mr-2"></i> API Key 无效
                    </h3>
                    <ul class="text-gray-700 space-y-2 pl-2">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-2 text-sm"></i>
                            <span>请检查是否正确复制了 DeepSeek 的 API Key。</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-2 text-sm"></i>
                            <span>确保你的 API Key <span class="font-semibold">没有过期</span> 或 <span class="font-semibold">超过使用额度</span>。</span>
                        </li>
                    </ul>
                </div>
                
                <!-- FAQ Item 2 -->
                <div class="card bg-white p-6 rounded-xl shadow-sm">
                    <h3 class="font-bold text-xl text-gray-800 mb-3 flex items-center">
                        <i class="fas fa-question-circle text-red-500 mr-2"></i> 无法连接 DeepSeek 服务器
                    </h3>
                    <ul class="text-gray-700 space-y-2 pl-2">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-2 text-sm"></i>
                            <span>尝试在浏览器中访问 <code>https://api.deepseek.com/v1</code>，看是否可以正常访问。</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-2 text-sm"></i>
                            <span>如果无法访问，可能需要 <span class="font-semibold">配置代理</span> 或 <span class="font-semibold">检查网络设置</span>。</span>
                        </li>
                    </ul>
                </div>
                
                <!-- FAQ Item 3 -->
                <div class="card bg-white p-6 rounded-xl shadow-sm">
                    <h3 class="font-bold text-xl text-gray-800 mb-3 flex items-center">
                        <i class="fas fa-question-circle text-red-500 mr-2"></i> 代码补全没有反应
                    </h3>
                    <ul class="text-gray-700 space-y-2 pl-2">
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-2 text-sm"></i>
                            <span>确保 <span class="font-semibold">Continue 插件</span> 已正确安装，并且 <span class="font-semibold">API Key</span> 正确配置。</span>
                        </li>
                        <li class="flex items-start">
                            <i class="fas fa-check-circle text-green-500 mt-1 mr-2 text-sm"></i>
                            <span>尝试重启 IDEA 或手动触发补全（按 <code>Ctrl + Space</code>）。</span>
                        </li>
                    </ul>
                </div>
            </div>
        </section>

        <!-- Video Demo -->
        <section id="video" class="mb-16">
            <h2 class="text-3xl font-bold mb-8 pb-2 border-b border-gray-200 flex items-center">
                <i class="fas fa-play-circle text-indigo-600 mr-3"></i> 视频演示
            </h2>
            <div class="bg-gray-100 rounded-xl p-8 text-center">
                <div class="max-w-2xl mx-auto">
                    <div class="aspect-w-16 aspect-h-9 bg-gray-200 rounded-lg overflow-hidden flex items-center justify-center">
                        <div class="text-center">
                            <i class="fas fa-play-circle text-5xl text-gray-400 mb-2"></i>
                            <p class="text-gray-600">实际操作演示视频</p>
                        </div>
                    </div>
                    <p class="mt-4 text-gray-600">观看完整的插件安装、配置和使用演示</p>
                </div>
            </div>
        </section>

        <!-- Summary -->
        <section class="bg-blue-50 rounded-xl p-8 mb-16">
            <h2 class="text-2xl font-bold text-blue-800 mb-4 flex items-center">
                <i class="fas fa-lightbulb mr-2"></i> 总结
            </h2>
            <p class="text-gray-700 mb-4">通过本教程，你已经学会了如何：</p>
            <ul class="space-y-2 text-gray-700">
                <li class="flex items-start">
                    <i class="fas fa-check text-blue-500 mt-1 mr-2"></i>
                    <span>安装 Continue 插件</span>
                </li>
                <li class="flex items-start">
                    <i class="fas fa-check text-blue-500 mt-1 mr-2"></i>
                    <span>配置 DeepSeek API 连接</span>
                </li>
                <li class="flex items-start">
                    <i class="fas fa-check text-blue-500 mt-1 mr-2"></i>
                    <span>使用代码补全功能</span>
                </li>
                <li class="flex items-start">
                    <i class="fas fa-check text-blue-500 mt-1 mr-2"></i>
                    <span>与 DeepSeek Chat 交互</span>
                </li>
                <li class="flex items-start">
                    <i class="fas fa-check text-blue-500 mt-1 mr-2"></i>
                    <span>解决常见问题</span>
                </li>
            </ul>
            <div class="mt-6 bg-white p-4 rounded-lg border border-blue-200">
                <p class="text-blue-800 font-medium flex items-center">
                    <i class="fas fa-rocket mr-2"></i> 现在就开始使用 DeepSeek 提升你的开发效率吧！
                </p>
            </div>
        </section>
    </main>

    <!-- Footer -->
    <footer class="bg-gray-900 text-gray-300 py-8">
        <div class="container mx-auto max-w-5xl px-4 md:px-0">
            <div class="flex flex-col md:flex-row justify-between items-center">
                <div class="mb-4 md:mb-0">
                    <h3 class="text-xl font-bold text-white mb-1">技术小馆</h3>
                    <p class="text-gray-400">分享前沿技术，探索编程世界</p>
                </div>
                <div>
                    <a href="http://www.yuque.com/jtostring" target="_blank" class="text-gray-300 hover:text-white transition hover-underline flex items-center">
                        <i class="fas fa-external-link-alt mr-2"></i> http://www.yuque.com/jtostring
                    </a>
                </div>
            </div>
            <div class="border-t border-gray-800 mt-6 pt-6 text-center text-gray-500 text-sm">
                © 2023 技术小馆. 保留所有权利.
            </div>
        </div>
    </footer>

    <!-- Mermaid JS -->
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <script>
        mermaid.initialize({
            startOnLoad: true,
            theme: 'default',
            flowchart: {
                useMaxWidth: true,
                htmlLabels: true,
                curve: 'basis'
            }
        });
    </script>
</body>
</html>
```